#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define M 10

int main()
{
	int a[M] = {1,2,3,4,5,6,7,8,9,10};
	int sum = 0, i ;
	for (i = 0; i < M - 1;)
	{
		sum += a[i];
		i += 2;
	}
	printf("sum is %d", sum);
	return 0;
}